import torch
A = torch.arange(20).reshape(5, 4)
print(A.shape)
print(A)
print(A.t())

print(A*A.t())

X = torch.arange(12).reshape(4,3)
Y = torch.arange(4).reshape(4,1)
print(X*Y)

A = torch.arange(20).reshape(5,4)
B = torch.arange(4).reshape(4,1)
print(A)
print(B)
print(A.mm(B))

print(torch.norm(torch.ones((4, 9))))